package com.amigo.online.common.param.dto.group;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author kml
 */
public class EditGroupDto {
	/**
	 * 群主id
	 */
	@NotNull
	@Digits(integer=30,fraction=0)
	private Long id;
	
	@Digits(integer=20,fraction=0)
	private Long userId;
	
	@Length(max=60)
	private String name;

	/**
	 * 	消息免打扰
	 */
	@Min(0)
	@Max(1)
	private Integer remind;
	
	@Min(0)
	@Max(1)
	private Integer isTop;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getRemind() {
		return remind;
	}
	public void setRemind(Integer remind) {
		this.remind = remind;
	}
	public Integer getIsTop() {
		return isTop;
	}
	public void setIsTop(Integer isTop) {
		this.isTop = isTop;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	
}
